import 'package:json_annotation/json_annotation.dart';

part 'clock.g.dart';

@JsonSerializable()
class Clock {
  int? id;
  int? userNo;
  String? userName;
  int? unitID;
  String? unitName;
  String? fDate;
  String? fAMType;
  String? fPMType;
  String? fAM;
  String? fPM;
  double? absentDays;
  double? attendDays;
  String? dayMemo;
  int? isHoliday;
  double? lateDays;
  double? leaveEarlyDays;
  double? salaryDays;

  Clock({
    this.id,
    this.userNo,
    this.userName,
    this.unitID,
    this.unitName,
    this.fDate,
    this.fAMType,
    this.fPMType,
    this.fAM,
    this.fPM,
    this.absentDays,
    this.attendDays,
    this.dayMemo,
    this.isHoliday,
    this.lateDays,
    this.leaveEarlyDays,
    this.salaryDays,});
  factory Clock.fromJson(Map<String, dynamic> json) => _$ClockFromJson(json);
  Map<String, dynamic> toJson() => _$ClockToJson(this);
}